<?php

namespace Database\Factories;

use App\Models\SystemConfig;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;

class SystemConfigFactory extends Factory
{
    /**
     * The name of the factory's corresponding model.
     *
     * @var string
     */
    protected $model = SystemConfig::class;

    /**
     * Define the model's default state.
     *
     * @return array
     */
    public function definition()
    {
        return [
            'menu_name' => Str::random(5),
            'config_table_id' => random_int(0, 10),
            'type' => 'text',
            'info' => $this->faker->name(),
        ];
    }
}
